package com.business.wechat.bean;

import net.sf.rose.jdbc.bean.annotation.Column;
import net.sf.rose.jdbc.bean.annotation.Table;
import net.sf.rose.jdbc.bean.annotation.Type;

/**
 * 
 * @author fengjian
 * @date: 2018/06/24
 * 微信配置信息表
 */
@Table(name = "WX_CONFIG", description = "微信公众号配置表")
public class WeixinConfigBean {

	@Column(pk = true, name = "ID", type = Type.定长文本, description = "编号", canNull = false, size = 32, policy = "UUID")
	private String id;

	@Column(type = Type.变长文本, description = "项目名称", size = 30)
	private String projectName;

	@Column(type = Type.变长文本, description = "公众号名称", size = 30)
	private String publicName;

	@Column(type = Type.变长文本, description = "微信APP_ID", size = 30)
	private String appId = null;

	@Column(type = Type.变长文本, description = "公众号二维码 ")
	private String QRCode;

	@Column(type = Type.变长文本, description = "公众号原始ID ")
	private String originalID;

	@Column(type = Type.变长文本, description = "公众号级别 ")
	private String publicLevel;

	@Column(type = Type.变长文本, description = "公众号开发者ID")
	private String developerID;

	@Column(type = Type.变长文本, description = "微信APP_SECRET", size = 100)
	private String appSecret = null;

	@Column(type = Type.变长文本, description = "微信TOKEN", size = 100)
	private String token = null;

	@Column(type = Type.变长文本, description = "微信AES_KEY", size = 100)
	private String aesKey = null;

	@Column(type = Type.变长文本, description = "商户微信支付apiKey", size = 100)
	private String apiKey = null;

	@Column(type = Type.变长文本, description = "商户号ID", size = 100)
	private String mchId = null;

	@Column(type = Type.变长文本, description = "微信支付", size = 100)
	private String keyPath = null;

	@Column(type = Type.变长文本, description = "微信服务器白名单", size = 100)
	private String whiteList = null;

	@Column(type = Type.变长文本, description = "微信服务器配置启用地址", size = 100)
	private String configAddress = null;

	@Column(type = Type.变长文本, description = "微信支付目录配置URL", size = 100)
	private String directoryPath = null;

	@Column(type = Type.变长文本, description = "借权URL", size = 100)
	private String borrowRightUrl = null;

	@Column(type = Type.变长文本, description = "微信支付", size = 60)
	private String mchKey = null;

	@Column(type = Type.变长文本, description = "子商户公众账号ID", size = 30)
	private String subAppId = null;

	@Column(type = Type.变长文本, description = "子商户号ID", size = 30)
	private String subMchId = null;

	/** 1：:使用中；2：停用 */
	@Column(type = Type.数字整型, description = "使用中")
	private int inUsed = 2;

	/** 消息输出日志处理类 */
	@Column(name = "LOG_HANDLER_CLASS_NAME", type = Type.变长文本, description = "", size = 150)
	private String logHandlerClassName;

	/** 微信交互消息处理类 */
	@Column(name = "MSG_HANDLER_CLASS_NAME", type = Type.变长文本, description = "", size = 150)
	private String msgHandlerClassName;

	/** 微信关注公众号处理类 */
	@Column(name = "SUB_HANDLER_CLASS_NAME", type = Type.变长文本, description = "", size = 150)
	private String subscribeHandlerClassName = null;

	/** 微信取消关注公众号处理类 */
	@Column(name = "UNSUB_HANDLER_CLASS_NAME", type = Type.变长文本, description = "", size = 150)
	private String unSubscribeHandlerClassName = null;

	@Column(type = Type.变长文本, description = "服务URL地址", size = 250)
	private String serverUrl = null;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPublicName() {
		return publicName;
	}

	public void setPublicName(String publicName) {
		this.publicName = publicName;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getQRCode() {
		return QRCode;
	}

	public void setQRCode(String qRCode) {
		QRCode = qRCode;
	}

	public String getOriginalID() {
		return originalID;
	}

	public void setOriginalID(String originalID) {
		this.originalID = originalID;
	}

	public String getPublicLevel() {
		return publicLevel;
	}

	public void setPublicLevel(String publicLevel) {
		this.publicLevel = publicLevel;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getAesKey() {
		return aesKey;
	}

	public void setAesKey(String aesKey) {
		this.aesKey = aesKey;
	}

	public String getApiKey() {
		return apiKey;
	}

	public void setApiKey(String apiKey) {
		this.apiKey = apiKey;
	}

	public String getMchId() {
		return mchId;
	}

	public void setMchId(String mchId) {
		this.mchId = mchId;
	}

	public String getKeyPath() {
		return keyPath;
	}

	public void setKeyPath(String keyPath) {
		this.keyPath = keyPath;
	}

	public String getWhiteList() {
		return whiteList;
	}

	public void setWhiteList(String whiteList) {
		this.whiteList = whiteList;
	}

	public String getConfigAddress() {
		return configAddress;
	}

	public void setConfigAddress(String configAddress) {
		this.configAddress = configAddress;
	}

	public String getDirectoryPath() {
		return directoryPath;
	}

	public void setDirectoryPath(String directoryPath) {
		this.directoryPath = directoryPath;
	}

	public String getMchKey() {
		return mchKey;
	}

	public void setMchKey(String mchKey) {
		this.mchKey = mchKey;
	}

	public String getSubAppId() {
		return subAppId;
	}

	public void setSubAppId(String subAppId) {
		this.subAppId = subAppId;
	}

	public String getSubMchId() {
		return subMchId;
	}

	public void setSubMchId(String subMchId) {
		this.subMchId = subMchId;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getDeveloperID() {
		return developerID;
	}

	public void setDeveloperID(String developerID) {
		this.developerID = developerID;
	}

	public String getLogHandlerClassName() {
		return logHandlerClassName;
	}

	public void setLogHandlerClassName(String logHandlerClassName) {
		this.logHandlerClassName = logHandlerClassName;
	}

	public String getMsgHandlerClassName() {
		return msgHandlerClassName;
	}

	public int getInUsed() {
		return this.inUsed;
	}

	public void setInUsed(int inUsed) {
		this.inUsed = inUsed;
	}

	public void setMsgHandlerClassName(String msgHandlerClassName) {
		this.msgHandlerClassName = msgHandlerClassName;
	}

	public String getSubscribeHandlerClassName() {
		return subscribeHandlerClassName;
	}

	public void setSubscribeHandlerClassName(String subscribeHandlerClassName) {
		this.subscribeHandlerClassName = subscribeHandlerClassName;
	}

	public String getBorrowRightUrl() {
		return borrowRightUrl;
	}

	public void setBorrowRightUrl(String borrowRightUrl) {
		this.borrowRightUrl = borrowRightUrl;
	}

	public String getUnSubscribeHandlerClassName() {
		return unSubscribeHandlerClassName;
	}

	public void setUnSubscribeHandlerClassName(String unSubscribeHandlerClassName) {
		this.unSubscribeHandlerClassName = unSubscribeHandlerClassName;
	}

	public String getServerUrl() {
		return this.serverUrl;
	}

	public void setServerUrl(String serverUrl) {
		this.serverUrl = serverUrl;
	}

}

